home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / _ScrollBarStyle.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  49 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ScrollArrowSkin;
  5.    import mx.skins.halo.ScrollThumbSkin;
  6.    import mx.skins.halo.ScrollTrackSkin;
  7.    import mx.styles.CSSStyleDeclaration;
  8.    import mx.styles.StyleManager;
  9.    
  10.    public class _ScrollBarStyle
  11.    {
  12.        
  13.       
  14.       public function _ScrollBarStyle()
  15.       {
  16.          super();
  17.       }
  18.       
  19.       public static function init(param1:IFlexModuleFactory) : void
  20.       {
  21.          var fbs:IFlexModuleFactory = param1;
  22.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ScrollBar");
  23.          if(!style)
  24.          {
  25.             style = new CSSStyleDeclaration();
  26.             StyleManager.setStyleDeclaration("ScrollBar",style,false);
  27.          }
  28.          if(style.defaultFactory == null)
  29.          {
  30.             style.defaultFactory = function():void
  31.             {
  32.                this.trackColors = [9738651,15198183];
  33.                this.thumbOffset = 0;
  34.                this.paddingTop = 0;
  35.                this.downArrowSkin = ScrollArrowSkin;
  36.                this.borderColor = 12040892;
  37.                this.paddingLeft = 0;
  38.                this.cornerRadius = 4;
  39.                this.paddingRight = 0;
  40.                this.trackSkin = ScrollTrackSkin;
  41.                this.thumbSkin = ScrollThumbSkin;
  42.                this.paddingBottom = 0;
  43.                this.upArrowSkin = ScrollArrowSkin;
  44.             };
  45.          }
  46.       }
  47.    }
  48. }
  49.